package com.dun.add.service;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

import com.dun.add.to.InputTO;
import com.dun.add.to.OutputTO;

@WebService(targetNamespace = "http://service.add.dun.com/", portName = "AdditionPort", serviceName = "AdditionService")
public class Addition {

	@WebMethod(operationName = "addingTwoNumbers", action = "urn:AddingTwoNumbers")
	public int addingTwoNumbers (@WebParam(name = "arg0") InputTO inputTO) {
		OutputTO outputTO = new OutputTO();
		outputTO.setResult(inputTO.getNumberOne() + inputTO.getNumberTwo());
		return outputTO.getResult();
	}
}
